/* 
 * File:   FiguraException.cpp
 * Author: max
 * 
 * Created on October 4, 2012, 8:27 PM
 */

#include "FiguraException.h"
#include "cstring"

using namespace TP::Grafica::Componentes;

FiguraException::FiguraException(const char* pMessage) {
    this->message = new char [strlen(pMessage) + 1];
    this->message [0] = '\0';
    strcpy (this->message, pMessage);
}

FiguraException::~FiguraException() throw() {
    delete [] this->message;
}

const char* FiguraException::what() const throw() {
    return this->message;
}

